<template>
    <div class="login">
        <mt-field label="用户名" placeholder="请输入用户名" v-model="username"></mt-field>
        <mt-field label="密码" placeholder="请输入密码" type="password" v-model="password"></mt-field>
        <mt-button type="primary" size="large">primary</mt-button>
        <router-link to="/register" style="color:#26a2ff">免费注册</router-link>
    </div>
</template>

<script>
export default {
  data () {
    return {
      username: '',
      password: ''
    }
  },
  mounted () {
    this.$store.state.title = '登录'
  }
}
</script>

<style lang='scss' scoped>
    .login{
        padding: 10px;
    }
</style>
